
#include <cmath>
#include "ILibMath.h"

bool BWE::short_abs(int argc, BVariant* argv)
{
	short s = argv[1];
	argv[1].setValue(abs(s));
	return true;
}
bool BWE::int_abs(int argc, BVariant* argv)
{
	int i = argv[1];
	argv[1].setValue(abs(i));
	return true;
}
bool BWE::long_abs(int argc, BVariant* argv)
{
	long l = argv[1];
	argv[1].setValue(abs(l));
	return true;
}
bool BWE::float_abs(int argc, BVariant* argv)
{
	float f = argv[1];
	argv[1].setValue(abs(f));
	return true;
}
bool BWE::double_abs(int argc, BVariant* argv)
{
	double d = argv[1];
	argv[1].setValue(abs(d));
	return true;
}
